package 循环队列;

public class Test {
    public static void main(String[] args) {
        MyCircularQueue myCircularQueue = new MyCircularQueue(3);
//        boolean ret1 = myCircularQueue.enQueue(1);
//        boolean ret2 = myCircularQueue.enQueue(2);
//        boolean ret3 = myCircularQueue.enQueue(3);
//        System.out.println(ret1);
//        System.out.println(ret2);
//        System.out.println(ret3);
//        System.out.println(myCircularQueue.Front());
//        System.out.println(myCircularQueue.Rear());
        System.out.println(myCircularQueue.enQueue(1));
        System.out.println(myCircularQueue.enQueue(2));
        System.out.println(myCircularQueue.enQueue(3));
        System.out.println(myCircularQueue.enQueue(4));
        System.out.println(myCircularQueue.Rear());
        System.out.println(myCircularQueue.isFull());
        System.out.println(myCircularQueue.deQueue());
        System.out.println(myCircularQueue.enQueue(4));
        System.out.println(myCircularQueue.Rear());
    }
}
